package com.jbm.onehome.iface;

import com.jbm.core.iface.IAcross;

import javax.persistence.Transient;
import java.io.Serializable;

/**
 * Created by lyh on 17-1-17.
 */
public class IStatDayEGuard extends IAcross implements Serializable
{
    public IStatDayEGuard(IAcross ia)
    {
        super(ia);
    }
    private static final long serialVersionUID = -7907984298009411991L;

    public IStatDayEGuard()
    {
        back = false;
        method = "";
        errorinfo = "";

        start = 0;
        count = 0;
    }

    public IStatDayEGuard(boolean back, String errorinfo)
    {
        this();

        this.back = back;
        this.errorinfo = errorinfo;
    }

    public IStatDayEGuard(String method, String startdate,String enddate)
    {
        this();

        this.method = method;
        this.startDate = startdate;
        this.endDate=     enddate;
    }

     IStatDayEGuard(
            String method,
            String dates,
            int totalregister,
            int newregister,
            int cert,
            int distribute,
            int totalopen,
            int sucess,
            int failed,
            String successrate,
            int android,
            int apple,
            int persons
     )
    {
        this ();

        this.dates = dates;
        this.method = method;
        this.totalregister = totalregister;
        this.newregister = newregister;
        this.cert = cert;
        this.distribute = distribute;
        this.totalopen = totalopen;
        this.sucess = sucess;
        this.failed = failed;
        this.successrate = successrate;
        this.android = android;
        this.apple = apple;
        this.persons = persons;
    }





    public String dates;
    public int totalregister;
    public int newregister;
    public int cert;
    public int distribute;
    public int totalopen;
    public int sucess;
    public int failed;
    public String successrate;
    public int android;
    public int apple;
    public int persons;



    public String startDate;
    public String endDate;

    @Transient
    public boolean back;
    @Transient
    public String method;
    @Transient
    public String errorinfo;
    @Transient
    public int count;
    @Transient
    public int start=0;
    @Transient
    public int pagesize=0;
    @Transient
    public Integer tableid;
}
